﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenExpressApp;

namespace OpenExpressApp
{
    /// <summary>
    /// 注册只读规则
    /// </summary>
    public interface IReadOnlyRegister
    {
        /// <summary>
        /// BOType:添加到那个类库上
        /// </summary>
        /// <param name="BOType"></param>
        /// <param name="readOnlyCheck"></param>
        void ReadOnlyCheckRegister(Type BOType, IReadOnlyChecker readOnlyCheck);
        /// <summary>
        /// 每个类库上都使用这个readOnlyCheck规则。
        /// </summary>
        /// <param name="readOnlyCheck"></param>
        void ReadOnlyCheckRegister(IReadOnlyChecker readOnlyCheck);
        /// <summary>
        /// 取出BOType上的只读规则
        /// </summary>
        /// <param name="BOType"></param>
        /// <returns></returns>
        IList<IReadOnlyChecker> GetReadOnlyCheckList(Type BOType);
        //IList<IReadOnlyChecker> GetReadOnlyCheckList();
    }
}
